package com.shxzz.easy12306.services.order.dto.domain;

import com.shxzz.easy12306.services.order.common.enums.OrderItemStatus;
import com.shxzz.easy12306.services.order.common.enums.OrderStatus;
import com.shxzz.easy12306.services.order.dao.entity.OrderItemDO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 订单项状态变更实体
 * @author shxzz
 * @create 2024-03-17-21:02
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class OrderItemStatusTransition {

    /**
     * 订单号
     */
    private String orderSn;

    /**
     * 订单项变更状态
     */
    private OrderStatus orderStatus;

    /**
     * 订单项变更状态
     */
    private OrderItemStatus orderItemStatus;

    /**
     * 要修改订单项信息
     */
    private List<OrderItemDO> orderItemDOList;

    /**
     * 状态变更的时间点
     */
    private LocalDateTime transitionTime;

    /**
     * 变更原因
     */
    private String reason;
}
